home *** CD-ROM | disk | FTP | other *** search
/ Aminet 38 / Aminet 38 (2000)(Schatztruhe)[!][Aug 2000].iso / Aminet / util / cli / Ev.readme < prev    next >
Encoding:
Text File  |  2000-07-01  |  3.2 KB  |  86 lines

  1. Short:    Powerful expression evaluator - v1.3
  2. Author:   jive@algonet.se (Jesper Wilhelmsson)
  3. Uploader: jive@algonet.se (Jesper Wilhelmsson)
  4. Version:  1.3
  5. Type:     util/cli
  6. Replaces: Eval, distributed with Amiga OS.
  7. Requires: A brain
  8.  
  9.  
  10. I have for some time been very unsatisfied with the functions of the tool eval,
  11. included in Amiga OS. I was hoping for an update in Amiga OS 3.5 but nothing
  12. has been done to this tool.
  13. Therefor I have written my own tool for mathematical evaluations.
  14.  
  15. The worst things about the old eval:
  16.  
  17. * It can't count! 1+2*3 should equal 7 not 9!! (no priorities?)
  18. * No suport for binary numbers
  19. * No support for decimal numbers
  20. * Too few functions
  21. * Not flexible enough to be userfriendly
  22. * No bugfixes or upgrades are made from the developer
  23.  
  24. Ev is improved in theese areas and some other:
  25.  
  26. * The prioritys are correct! 1+2*3 = 7
  27. * Ev supports all the old Eval input for compability reasons (except for e)
  28. * Support for binary numbers added in input and output
  29. * The constants pi and e added
  30. * Support for decimal numbers added, both 0.1 and .1 are accepted
  31. * Correct rounding of decimals
  32.  
  33. * New flexibility added with support for:
  34.   * the words and (&), or (|), not (~)
  35.   * both <<, >> and lsh, rsh (and l, r) for left/right shift
  36.   * d## and @d for decimal input and output
  37.   * several new ESC-codes in output (tab, bell, formfeed etc.)
  38.   * number of digits in octal and hexadecimal output is optional
  39.   * multiplication without '*'-token in obvious places
  40.   * reading expressions from a file or stdin
  41.   * multiple expression calculation, (see docs)
  42.   * variables
  43.  
  44. * Several new functions:
  45.   * absolute value (abs)
  46.   * square root (sqrt)
  47.   * faculty (!)
  48.   * powered numbers (^)
  49.   * trigonometric functions (sin, cos, tan, asin, acon, atan, sinh, cosh, tanh)
  50.   * random number (rnd)
  51.   * logarithmic functions (ln, log, log2, logx)
  52.  
  53. + I will keep upgrading it if there is a need for that.
  54.  
  55. Downside of the new version:
  56.  
  57. * Bigger executable. I've used the tools bison and flex to create the parser
  58.   and theese tools do not create small files.
  59.  
  60. * Not 100% compatible with Eval, e does not mean eqv any more since the
  61.   number e=2.718281828...
  62.   From v1.2 the %n, %o and %x has changed to @n, @o and @x to make Ev
  63.   preform better in scripts, this means more compability to Eval is lost.
  64.   On the other hand it was Amiga Inc. who told me to make the changes so I
  65.   guess it's allright.
  66.  
  67. * The argument management seems to be different in some ways which seems
  68.   to have a negative effect on the behaviour of Ev in scripts. For example
  69.   the test script in the manual for OS 3.5 with Eval used as a counter will
  70.   not work with Ev. Other scripts I have seen works fine though.
  71.  
  72. I hope thats it.
  73.  
  74.  
  75. ============================= Archive contents =============================
  76.  
  77. Original  Packed Ratio    Date     Time    Name
  78. -------- ------- ----- --------- --------  -------------
  79.     2802    1846 34.1% 21-Jan-00 00:31:12  Ev.info
  80.    24672   11824 52.0% 10-Apr-00 12:30:54 +Ev
  81.      240     166 30.8% 09-Apr-00 15:37:42 +Ev.catalog
  82.      271     202 25.4% 04-Apr-00 15:50:34 +Ev.cd
  83.    36236   12258 66.1% 07-Jun-00 16:28:20 +Ev.Guide
  84. -------- ------- ----- --------- --------
  85.    64221   26296 59.0% 21-Jun-100 16:30:50   5 files
  86.